<?php

/**
 * Tag cloud widget class
 *
 * @since 2.8.0
 */
class social extends stwidgets {

    function social() {
        $this->WP_Widget(false, $name = 'EB Social icon ');
    }

    function widget($args, $instance) {
        ?>
        <!--div class="cleaner_h10">&nbsp;</div-->
    <div class="textwidget" id="connect"><div class="socialwiget">
            <a href="<?php echo $instance['blogger'] ?>" target="_blank" rel="nofollow">
                <img width="25" vspace="4" hspace="3" height="25" border="0" src="<?php echo bloginfo('template_url'); ?>/images/blogger.png" alt="Follow SCT on Blogger" title="Follow SCT on Blogger"></a>
            <a href="<?php echo $instance['facebook'] ?>" target="_blank" rel="nofollow">
                <img width="25" vspace="4" hspace="3" height="25" border="0" src="<?php echo bloginfo('template_url'); ?>/images/facebook.png" alt="Follow SCT on Facebook" title="Follow SCT on Facebook"></a>
            <a href="<?php echo $instance['twitter'] ?>" target="_blank" rel="nofollow">
                <img width="25" vspace="4" hspace="3" height="25" border="0" src="<?php echo bloginfo('template_url'); ?>/images/twitter.png" alt="Follow SCT on Twitter" title="Follow SCT on Twitter"></a>
            <a href="<?php echo $instance['wordpress'] ?>" target="_blank" rel="nofollow">
                <img width="25" vspace="4" hspace="3" height="25" border="0" src="<?php echo bloginfo('template_url'); ?>/images/wordpress.png" alt="Follow SCT on Wordpress" title="Follow SCT on Wordpress"></a>
            <a href="<?php echo $instance['youtube'] ?>" target="_blank" rel="nofollow">
                <img width="25" vspace="4" hspace="3" height="25" border="0" src="<?php echo bloginfo('template_url'); ?>/images/youtube.png" alt="Follow SCT on Youtube" title="Follow SCT on Youtube"></a>
            <a href="<?php echo $instance['picasa'] ?>" target="_blank" rel="nofollow">
                <img width="25" vspace="4" hspace="3" height="25" border="0" src="<?php echo bloginfo('template_url'); ?>/images/picasa.png" alt="Follow SCT on Picasa" title="Follow SCT on Picasa"></a>
			
            <!--a href="<?php echo $instance['email'] ?>" rel="nofollow">
                <img src="<?php echo bloginfo('template_url'); ?>/images/email.gif" alt="" title="Follow SCT on E-mail" style="opacity: 0.8; -moz-opacity: 0.8;" class="fade"></a-->
			<a href="<?php echo $instance['googleplus'] ?>" target="_blank" rel="nofollow">
                <img width="25" vspace="4" hspace="3" height="25" border="0" src="<?php echo bloginfo('template_url'); ?>/images/google.png" alt="Follow SCT on Google+" title="Follow SCT on Google+"></a>
        </div>
    </div>

        <?php
    }

    function form($instance) {
        $number_of_post = $instance['number_of_post'];
        $post_offset = $instance['post_offset'];
        $cat_id = $instance['cat_id'];
        $title = $instance['title'];
        ?>

        <p>
            <label for="">Blogger</label>
            <input type="text" name="blogger" class="widefat" value="<?php echo $instance['blogger'] ?>">
        </p>
         <p>
            <label for="">Facebook</label>
            <input type="text" name="facebook" class="widefat" value="<?php echo $instance['facebook'] ?>">
        </p>
         <p>
            <label for="">Twitter</label>
            <input type="text" name="twitter" class="widefat" value="<?php echo $instance['twitter'] ?>">
        </p>
         <p>
            <label for="">Wordpress</label>
            <input type="text" name="wordpress" class="widefat" value="<?php echo $instance['wordpress'] ?>">
        </p>
         <p>
            <label for="">Youtube</label>
            <input type="text" name="youtube" class="widefat" value="<?php echo $instance['youtube'] ?>">
        </p>
         <p>
            <label for="">Picasa</label>
            <input type="text" name="picasa" class="widefat" value="<?php echo $instance['picasa'] ?>">
        </p>
         <!--p>
            <label for="">Email</label>
            <input type="text" name="email" class="widefat" value="<?php echo $instance['email'] ?>">
        </p-->
		<p>
            <label for="">Google+</label>
            <input type="text" name="googleplus" class="widefat" value="<?php echo $instance['googleplus'] ?>">
        </p>
        


        <?php
    }

}
